<template>
    <!-- 组件的结构 -->
    <div class="app">
        <CategoryTest title="游戏">
            <template scope="heima">
                <div>
                    <ul>
                        <li v-for="(item,index) in heima.games" :key="index">{{item}}</li>
                    </ul>
                </div>
            </template>
        </CategoryTest>
        <CategoryTest title="游戏">
            <template scope="heima">
                <div>
                    <ol>
                        <li v-for="(item,index) in heima.games" :key="index">{{item}}</li>
                    </ol>
                </div>
            </template>
        </CategoryTest>
        <CategoryTest title="游戏">
            <template slot-scope="heima">
                <div>
                   <h4 v-for="(item,index) in heima.games" :key="index">{{item}}</h4>
                </div>
            </template>
        </CategoryTest>
    </div>  
</template>

<script>
    import CategoryTest from './components/Category-test.vue';
    export default{
    name: "App",
    data() {
        return {
            
        }
    },
    components: { CategoryTest }
}
</script>

<style scoped>
    .app{
        display: flex;
        justify-content: space-around;
    }
    img{
        width: 100%;
   }
   video{
    width: 100%;
   }
   a{
    padding-left: 10px;
    margin: 10px 10px;
   }
   .food{
    margin: 0 50px;
   }
   h4{
    text-align: center;
   }
</style>